package evaluateresult

import (
	dbModel "ZHONGYIHANGYAN/bean/dbModel"
	"ZHONGYIHANGYAN/mysql"
)

type EvaluateResultManage struct {
	mysql.DataBase
}

var defaultEvaluateResultManage = &EvaluateResultManage{}

func Manage() *EvaluateResultManage {
	return defaultEvaluateResultManage
}

// 初始化指标表
func InitTable(DB *mysql.MysqlGorm) {
	defaultEvaluateResultManage.DataBase = DB
	defaultEvaluateResultManage.autoMigrate()
}

func (m *EvaluateResultManage) autoMigrate() {
	m.DataBase.AutoMigrate(&dbModel.EvaluateResult{})
}
